package com.qf.factory;

import org.springframework.beans.factory.FactoryBean;

import java.util.HashMap;
import java.util.Map;

/**
 * @author 10537
 * @version V1.0
 * @Date 2021/9/27 21:00
 */

public class MapFactory implements FactoryBean<Map> {
    @Override
    public Map getObject() throws Exception {
        Map map=new HashMap();
        map.put("name","嘿嘿黑");
        map.put("gender","男");
        return map;
    }

    @Override
    public Class<?> getObjectType() {
        return Map.class;
    }
}
